import request from '@/utils/request'

// 客户列列表
export function customerColList(params?: Record<string, any>) {
  return request.get({ url: '/customerCol/list', params })
}

// 客户列详情
export function customerColDetail(params: Record<string, any>) {
  return request.get({ url: '/customerCol/detail', params })
}

// 客户列新增
export function customerColAdd(params: Record<string, any>) {
  return request.post({ url: '/customerCol/add', params })
}

// 客户列编辑
export function customerColEdit(params: Record<string, any>) {
  return request.post({ url: '/customerCol/edit', params })
}

// 客户列删除
export function customerColDelete(params: Record<string, any>) {
  return request.post({ url: '/customerCol/del', params })
}

//查询所有客户名称
export function customerNameFoAll(params?: Record<string, any>) {
  return request.get({ url: '/customer/all', params })
}
